package file;

import java.io.File;

public class MkdirsDemo {
    public static void main(String[] args) {
        File file = new File("./a/b/c/d/e/f");
        if (!file.exists()){
            file.mkdirs();
            System.out.println("目录已创建");
            return;
        }

        System.out.println("目录已存在");
    }
}
